package com.yys.gulimall.order.constant;

/**
 * @author zq
 * @version 1.0
 * @date 2021/4/4 14:51
 */
public class OrderConstant {
    public static final String USER_ORDER_TOKEN_PREFIX = "order:token:";
    public static final Integer AUTO_CONFIRM_DAY = 7;
    public static final Integer DELETE_STATUS = 0;

    public static final String ORDER_CREATE_QUEUE = "order.create.queue";
    public static final String ORDER_RELEASE_QUEUE = "order.release.queue";

    public static final String ORDER_EVENT_EXCHANGE = "order-event-exchange";

    public static final String ORDER_CREATE_ROUTING_KEY = "order.create.key";
    public static final String ORDER_RELEASE_ROUTING_KEY = "order.release.key";

    public static final String ORDER_RELEASE_OHTER_ROUTING_KEY = "order.release.other.#";

    // 订单 30 分钟过期
    public static final int ORDER_TTL = 60000 * 30;

}
